#include"thread_pool.hpp"
#include<ctime>
#include<cstdlib>

using namespace ns_threadpool;


int main()
{
    ThreadPool<int>* tp= new ThreadPool<int>(3);
    tp->InitThreadPool();
    srand((long long)time(nullptr));
    while(true)
    {
        sleep(1);
        tp->PushTask(rand()%5);
    }
}